import request from '@/utils/request'

// 查询用户景点收藏列表
export function listUserScenicFavorite(query) {
  return request({
    url: '/jiu-mount-huangshan/userScenicFavorite/list',
    method: 'get',
    params: query
  })
}

// 查询用户景点收藏详细
export function getUserScenicFavorite(id) {
  return request({
    url: '/jiu-mount-huangshan/userScenicFavorite/' + id,
    method: 'get'
  })
}

// 新增用户景点收藏
export function addUserScenicFavorite(data) {
  return request({
    url: '/jiu-mount-huangshan/userScenicFavorite',
    method: 'post',
    data: data
  })
}

// 修改用户景点收藏
export function updateUserScenicFavorite(data) {
  return request({
    url: '/jiu-mount-huangshan/userScenicFavorite',
    method: 'put',
    data: data
  })
}

// 删除用户景点收藏
export function delUserScenicFavorite(id) {
  return request({
    url: '/jiu-mount-huangshan/userScenicFavorite/' + id,
    method: 'delete'
  })
}
